package storage;

import java.sql.Timestamp;

public class Scratch {
    public static void main( String[] args ){
    	java.util.Date date= new java.util.Date();
    	Timestamp ts = new Timestamp(date.getTime());
    	System.out.println( ts );
    	System.out.println( date.getTime() );
    	System.out.println( System.currentTimeMillis() );
    	System.out.println( new Timestamp( System.currentTimeMillis() ) );
    	
    	String str = "/home/public/test.txt";
    	System.out.println( str );
    	int i = str.lastIndexOf( '/' );
    	System.out.println( i );
    	System.out.println( str.substring( 0, i + 1 ) );
    	System.out.println( str.substring( i + 1 ) );
    }
}
